import GraphBack from '../../src'
const canvas = document.createElement('canvas')
canvas.style.position = 'fixed'
canvas.style.width = canvas.style.height = '100%'
canvas.style.top = canvas.style.left = '0'
document.body.appendChild(canvas)

// 场景
const scene = new GraphBack.Scene(canvas)

const rect = new GraphBack.Rect({ color: 'green', x: 50, y: 100, width: 200 })
scene.add(rect)

const rect2 = new GraphBack.Rect({ color: 'green', x: 50, y: 300, width: 200, fill: false })
scene.add(rect2)

scene.render()
